package huanzhao.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import huanzhao.erp.domain.entity.Clear;
import org.apache.ibatis.annotations.Param;

public interface ClearMapper extends BaseMapper<Clear> {

    boolean isInBigClear();

    /**
     * 获取正在进行的盘库
     *
     * @return List<Clear>
     * 2024/10/12 19:32:23
     */
    IPage<Clear> getRunningClears(IPage<?> page);

    /**
     * 获取已结束的盘库
     *
     * @return List<Clear>
     * 2024/10/12 19:32:51
     */
    IPage<Clear> getFinishedClears(IPage<?> page);

    /**
     * 启动盘库
     *
     * @param big 是否为大盘库
     *            2024/10/12 21:08:55
     */
    void startClear(@Param("big") boolean big);

    /**
     * 结束盘库
     * @param clearId 盘库id
     * 2024/10/13 09:33:44
     */
    void finishClear(@Param("clearId") long clearId);
}




